
const env="t";
//h是前端写死数据
//p是线上环境
//t是内测环境       
//d开发环境
var apiList;
if(env=="h"){
 apiList = {
    baseUrl:"https://wnworld.com/api/JiaJiaDai/",
    login: "login.php",//登录
    home: "home.php",//首页
    bizs: "bizs.php",//商家列表
    biz: "biz.php",//商家详情
    myinfo: "myinfo.php",//我的资料
    uselog: "24uselog.php", //消费记录
    pay: "pay.php", //消费记录
    prepay: "prepay.php", //支付页面初始请求
    uphouse: "uphouse.php", //上传房屋照片,
    houseimgs: "houseimgs.php",
    upimg: "upimg",//上传图片
   
   saveimgs: "savehouseimg.php",//保存上传图片
    resetpaypwd: "resetpaypwd.php", //上传房屋照片,
    signcontarct:"signcontarct.php", //确认签约请求地址
    mycontract: "mycontract.php", //确认签约请求地址
    mailcontract: "mailcontract.php", //合同发送邮箱地址
    createcontarct: "createcontarct.php",
    apply_biz: "apply_biz.php",
    formid: "https://wnworld.com/api/JiaJiaDai/formid.php",
    sms:"https://wnworld.com/api/JiaJiaDai/sms.php"
  };  
}else if(env=="p"){
  apiList = {
    baseUrl: "https://api.haodian.cn/wxapp/jjd/jjd/",
    login: "login1",//登录
    home: "home",//首页
    bizs: "bizs",//商家列表
    biz: "biz",//商家详情
    myinfo: "myinfo",//我的资料
    uselog: "uselog", //消费记录
    pay: "pay",
    houseimgs: "houseimgs",
    upimg: "upimg",//上传图片
    savehouseimg: "savehouseimg",//保存上传图片
    saveimgs: "saveimgs",
    resetpaypwd: "resetpaypwd", //上传房屋照片,
    prepay: "prepay", //支付页面初始请求
    uphouse: "uphouse", //消费记录
    signcontarct: "signcontarct", //确认签约请求地址
    mycontract: "mycontract", //确认签约请求地址
    mailcontract: "mailcontract",//下载合同到邮箱
    createcontarct:"createcontarct",
    collectformid: "collectformid",
    apply_biz: "apply_biz",
    sms: "https://api.haodian.cn/wxapp/jjd/jjd/sendcode"
  }
} else if (env == "t") {
  apiList = {
    baseUrl: "https://api.test.haodian.cn/wxapp/jjd/jjd/",
    login: "login1",//登录
    home: "home",//首页
    bizs: "bizs",//商家列表
    biz: "biz",//商家详情
    myinfo: "myinfo",//我的资料
    uselog: "uselog", //消费记录
    pay: "pay",
    houseimgs: "houseimgs",
    upimg: "upimg",//上传图片
    savehouseimg: "savehouseimg",//保存上传图片
    saveimgs: "saveimgs",
    resetpaypwd: "resetpaypwd", //上传房屋照片,
    prepay: "prepay", //支付页面初始请求
    uphouse: "uphouse", //消费记录
    signcontarct: "signcontarct", //确认签约请求地址
    mycontract: "mycontract", //确认签约请求地址
    mailcontract: "mailcontract",//下载合同到邮箱
    createcontarct: "createcontarct",
    collectformid: "collectformid",
    apply_biz: "apply_biz",
    sms: "https://api.test.haodian.cn/wxapp/jjd/jjd/sendcode"
  }
}else if (env=="d"){
  apiList = {
    baseUrl: "https://hd-api.dev.xiaoyu.com/wxapp/jjd/jjd/",
    login: "login1",//登录
    home: "home",//首页
    bizs: "bizs",//商家列表
    biz: "biz",//商家详情
    myinfo: "myinfo",//我的资料
    uselog: "uselog", //消费记录
    pay:"pay",
    houseimgs:"houseimgs",
    upimg: "upimg",//上传图片
    savehouseimg: "savehouseimg",//保存上传图片
    saveimgs:"saveimgs",
    resetpaypwd: "resetpaypwd", //上传房屋照片,
    prepay: "prepay", //支付页面初始请求
    uphouse: "uphouse", //消费记录
    signcontarct: "signcontarct", //确认签约请求地址
    mycontract: "mycontract", //确认签约请求地址
    mailcontract: "mailcontract",//下载合同到邮箱
    createcontarct: "createcontarct",
    collectformid: "collectformid",
    apply_biz:"apply_biz",
    sms: "https://hd-api.dev.xiaoyu.com/wxapp/jjd/jjd/sendcode"
  }
}



module.exports = apiList;